Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top |

Performing Compression and Decompression at Interrupt Time

DataCodecBeginInterruptSafe

Your software calls the DataCodecBeginInterruptSafe function before performing a compression or decompression operation during interrupt time.

pascal ComponentResult DataCodecBeginInterruptSafe (
                     DataCodecComponent dc,
                     unsigned long maxSrcSize);
dc
The instance of a compressor or decompressor component for this request. Your software obtains this reference when calling the Component Manager's OpenComponent or OpenDefaultComponent function.

maxSrcSize
The maximum size of a block of data to be compressed or decompressed, in bytes.

DISCUSSION

If the function returns an error, your software must not perform compression or decompression operations during interrupt time.

This function allocates any temporary buffers that are necessary to perform the operation during interrupt time. To release the resources used to make the operation safe during interrupt time, call the DataCodecEndInterruptSafe function or close the instance of the compressor or decompressor component.

DataCodecEndInterruptSafe

When your software has finished a compression or decompression operation that must be performed during interrupt time, it can release any memory of other resources used by the DataCodecBeginInterruptSafe function to make the operation safe by calling the DataCodecEndInterruptSafe function.

pascal ComponentResult DataCodecEndInterruptSafe (
                     DataCodecComponent dc);
dc
The instance of a compressor or decompressor component for this request.


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top |